package com.sfx.shortLink.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sfx.shortLink.common.database.BaseDO;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * @description t_link_access_logs
 * @author sfx
 * @date 2024-01-12
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_link_access_logs")
@Builder
public class LinkAccessLogsDO extends BaseDO implements Serializable {

    @Serial
    private static final long serialVersionUID = -8308415467654906468L;

    /**
     * 完整短链接
     */
    @TableId(type = IdType.AUTO)
    private String fullShortUrl;

    /**
     * 分组标识
     */
    private String gid;

    /**
     * 用户信息
     */
    private String user;

    /**
     * ip
     */
    private String ip;

    /**
     * 浏览器
     */
    private String browser;

    /**
     * 操作系统
     */
    private String os;

    /**
     * 访问网络
     */
    private String network;

    /**
     * 访问设备
     */
    private String device;

    /**
     * 地区
     */
    private String locale;
}